#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int* day(int year, int month)
{
	int arr[] = {0, 31,28,31,30,31,30,31,30,31,31,31,30,31,30,31 };
	int day = arr[month];
	if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0)
	{
		if (month == 2)
		{
			day += 1;
		}
	}
	return day;
}
int main()
{
	int year = 0;
	int month = 0;
	scanf("%d %d", &year, &month);
	day(year,month);
	int *j(int ,int ) 
	printf("%d",)
}